<script>
    export default {
        name: "BtnsGroup",
        render(){
            const slots = this.$scopedSlots?.default||(()=>[]);
            let arr = slots();
            arr = arr.reduce((t,i,idx)=>{
                if(!i.tag){
                    return t;
                }
                if(i.componentInstance&&i.componentInstance._isDestroyed==true){
                    return t;
                }
                if (!i.key) {
                    i.key = ''+idx;
                }
                t.push(i);
                t.push(<a-divider type="vertical" />);
                return t;
            },[]);
            arr.pop();
            return (
                <div>{arr}</div>
            );
                   
        }
    }
</script>